package com.taxi.service;

import com.taxi.dto.Car;
import com.taxi.dto.DriverUser;
import com.taxi.remote.ServerDriverUserClient;
import com.taxi.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: aniu
 * @Date: 2023/9/27
 * @ClassName: DriverUserService
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@Service
public class DriverUserService {
    @Autowired
    ServerDriverUserClient serverDriverUserClient;

    public Result addDriverUser(DriverUser driverUser) {
        return serverDriverUserClient.addOrUpdateDriverUser(driverUser);
    }

    public Result getDriverUserList(int page,int limit,String address, String phone){
        return serverDriverUserClient.getDriverUserList(page,limit,address,phone);
    }
}
